package com.yoga.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * yoga_privaterequest
 * @author 
 */
public class YogaPrivaterequest implements Serializable {
    private Integer pqid;

    private Integer cftid;

    private String uid;

    private String coachuid;

    private Date requesttime;

    /**
     *    1 璇锋眰锛?鍚屾剰锛? 鎷掔粷
            0,null鏈??鐞? 1 宸茬?绾?2鎷掔粷   3 宸茬粡瑙ｇ害
            1璇锋眰 2鍚屾剰 3鎷掔粷 4宸蹭粯娆
     */
    private Integer pstatus;

    private Integer classmoney;

    private static final long serialVersionUID = 1L;

    public Integer getPqid() {
        return pqid;
    }

    public void setPqid(Integer pqid) {
        this.pqid = pqid;
    }

    public Integer getCftid() {
        return cftid;
    }

    public void setCftid(Integer cftid) {
        this.cftid = cftid;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getCoachuid() {
        return coachuid;
    }

    public void setCoachuid(String coachuid) {
        this.coachuid = coachuid;
    }

    public Date getRequesttime() {
        return requesttime;
    }

    public void setRequesttime(Date requesttime) {
        this.requesttime = requesttime;
    }

    public Integer getPstatus() {
        return pstatus;
    }

    public void setPstatus(Integer pstatus) {
        this.pstatus = pstatus;
    }

    public Integer getClassmoney() {
        return classmoney;
    }

    public void setClassmoney(Integer classmoney) {
        this.classmoney = classmoney;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        YogaPrivaterequest other = (YogaPrivaterequest) that;
        return (this.getPqid() == null ? other.getPqid() == null : this.getPqid().equals(other.getPqid()))
            && (this.getCftid() == null ? other.getCftid() == null : this.getCftid().equals(other.getCftid()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getCoachuid() == null ? other.getCoachuid() == null : this.getCoachuid().equals(other.getCoachuid()))
            && (this.getRequesttime() == null ? other.getRequesttime() == null : this.getRequesttime().equals(other.getRequesttime()))
            && (this.getPstatus() == null ? other.getPstatus() == null : this.getPstatus().equals(other.getPstatus()))
            && (this.getClassmoney() == null ? other.getClassmoney() == null : this.getClassmoney().equals(other.getClassmoney()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPqid() == null) ? 0 : getPqid().hashCode());
        result = prime * result + ((getCftid() == null) ? 0 : getCftid().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getCoachuid() == null) ? 0 : getCoachuid().hashCode());
        result = prime * result + ((getRequesttime() == null) ? 0 : getRequesttime().hashCode());
        result = prime * result + ((getPstatus() == null) ? 0 : getPstatus().hashCode());
        result = prime * result + ((getClassmoney() == null) ? 0 : getClassmoney().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pqid=").append(pqid);
        sb.append(", cftid=").append(cftid);
        sb.append(", uid=").append(uid);
        sb.append(", coachuid=").append(coachuid);
        sb.append(", requesttime=").append(requesttime);
        sb.append(", pstatus=").append(pstatus);
        sb.append(", classmoney=").append(classmoney);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}